package cn.bdqn.domain;

import java.io.Serializable;

/**
 * 回执单实体类
 * @author dkj
 */
public class Receipt implements Serializable {

    /**
     * id
     */
    private Integer id;

    /**
     * 回执单号
     */
    private String receiptNumber;


    /**
     * 回执单id
     */
    private Integer sendFreightId;

    /**
     * 发货单对象
     */
    private SendFreight sendFreight;

    /**
     * 回执信息
     */
    private String message;

    /**
     * 回执状态  1.正常 2.异常
     */
    private Integer state;


    public Integer getSendFreightId() {
        return sendFreightId;
    }

    public void setSendFreightId(Integer sendFreightId) {
        this.sendFreightId = sendFreightId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getReceiptNumber() {
        return receiptNumber;
    }

    public void setReceiptNumber(String receiptNumber) {
        this.receiptNumber = receiptNumber == null ? null : receiptNumber.trim();
    }

    public SendFreight getSendFreight() {
        return sendFreight;
    }

    public void setSendFreight(SendFreight sendFreight) {
        this.sendFreight = sendFreight;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Receipt{" +
                "id=" + id +
                ", receiptNumber='" + receiptNumber + '\'' +
                ", sendFreightId=" + sendFreightId +
                ", sendFreight=" + sendFreight +
                ", message='" + message + '\'' +
                ", state=" + state +
                '}';
    }
}
